<template>
    <img id='background' src="@/assets/images/background.jpg" alt="">
</template>

<script>
export default {
    data(){
        return{
            count:0,
            timer:null
        }
    },
    mounted(){
      this.timer=setInterval(() => {
          this.count++
            if(this.count>=4){
                clearInterval(this.timer)
                this.$router.push({name:"listen"})
            }
        }, 1000);
    }
}
</script>

<style scoped>
 #background{
     width: 100%;
     height: 100%;
 }
</style>